package com.kaizzi.data.jdl.helper;

import com.kaizzi.data.jdl.model.ExcelModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Kzen
 * @Description 仅支持本地调试使用
 * @date 2020/10/12
 */
@Slf4j
@Component
public class LocalPageData {
    @Resource
    private PageData4 pageData4;
    @Resource
    private ExcelHelper excelHelper;
    @Resource
    private PageData7 pageData7;
    @Resource
    private PageData8 pageData8;
    @Resource
    private PageData9 pageData9;
    @Resource
    private PageData10 pageData10;
    @Resource
    private PageData11 pageData11;
    @Resource
    private PageData12 pageData12;
    @Resource
    private PageData14 pageData14;
    @Resource
    private PageData15 pageData15;
    @Resource
    private PageData17 pageData17;
    @Resource
    private PageData18 pageData18;
    @Resource
    private PageData20 pageData20;
    @Resource
    private PageData21 pageData21;
    @Resource
    private PageData22 pageData22;
    @Resource
    private PageData24 pageData24;
    @Resource
    private PageData27 pageData27;
    @Resource
    private PageData29 pageData29;
    @Resource
    private PageData30 pageData30;
    @Resource
    private PageData34 pageData34;
    @Resource
    private PageData37 pageData37;
    @Resource
    private PageData38 pageData38;
    @Resource
    private PageData41 pageData41;
    @Resource
    private PageData45 pageData45;
    @Resource
    private PageData42 pageData42;


    public String getPageData(int page) {
        ExcelModel model = excelHelper.readExcel();
        return pageData7.getData(model);
    }
}
